package example;

import java.net.ConnectException;

import org.tuio4j.TuioClient;
import org.tuio4j.TuioClientListener;
import org.tuio4j.TuioEvent;

public class HelloTuio {
	public static void main(String[] args) {
		try {
			TuioClient tc = new TuioClient();
			tc.connect();
			tc.addListener(new TuioClientListener() {
				@Override
				public void eventReceived(TuioEvent te) {
					System.out.println(te);
				}
			});
		} catch (ConnectException e) {
			e.printStackTrace();
		}
	}
}
